package com.xiyu.service.enums.elder.register;

import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 来访登记状态
*/
@Getter
@AllArgsConstructor
public enum ElderVisitStatusEnum implements IntArrayValuable {

    /**
    * 已预约
    */
    RESERVED(1, "已预约"),
    /**
    * 已来访
    */
    VISITED(2, "已来访"),
    /**
    * 已离开
    */
    LEAVE(3, "已离开"),
    /**
    * 已取消
    */
    CANCEL(4, "已取消");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(ElderVisitStatusEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(ElderVisitStatusEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}

